package com.yycx.module.user.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractAllEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 用户身份认证资料（开卡完善信息表,新增常用旅客信息表）
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("app_user_privatedata")
@TableAlias("privateData")
@ApiModel(value = "AppUserPrivatedata对象", description = "用户身份认证资料（开卡完善信息表,新增常用旅客信息表）")
public class AppUserPrivatedata extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "privateDataId", type = IdType.ASSIGN_ID)
    private Long privateDataId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "证件照")
    private String identityImg;

    @ApiModelProperty(value = "证件类型（0无，1身份证，2护照,3港澳通行证，4台胞证）")
    private Integer identityType;

    @ApiModelProperty(value = "证件号码")
    private String identityNo;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "紧急电话")
    private String telePhone;

    @ApiModelProperty(value = "国籍")
    private String nationality;

    @ApiModelProperty(value = "签发地")
    private String issueAt;

    @ApiModelProperty(value = "有效期")
    private String expiryDate;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "性别(1女，2男)")
    private Integer sex;

    @ApiModelProperty(value = "会员年龄")
    private Integer age;

    @ApiModelProperty(value = "出生日期")
    private String birthDate;

    @ApiModelProperty(value = "英文名")
    private String firstName;

    @ApiModelProperty(value = "英文姓")
    private String lastName;

    @ApiModelProperty(value = "是否本人（1是，2否）")
    private Integer isOneself;

    @ApiModelProperty(value = "初次认证（1是初次认证,2非初次认证）")
    private Integer isFirstAuth;

    @ApiModelProperty(value = "要客卡公司名称")
    private String companyName;

    @ApiModelProperty(value = "要客卡不显示在常用旅客里（1展示，2不展示）")
    private String companyAddress;

    private Integer isShow;

    @ApiModelProperty(value = "(1完善卡的信息，2旅客新增的)")
    private Integer dataType;

}
